#include "TableNode.h"
#include <iostream>
#include <vector>

using namespace std;

typedef int INTEGER;
typedef int INDEX;
typedef string STRING;
typedef bool BOOLEAN;


	TableNode::TableNode(INDEX index, STRING varName, STRING extraInfo){
		_index = index;
		_varName = varName;
		_extraInfo = extraInfo;
		_startLine = -1;
		_endLine = -1;
	}
	INDEX TableNode::getIndex(){
		return _index;
	}
	BOOLEAN TableNode::setIndex(INDEX index){
		_index = index;
		return true;
	}
	STRING TableNode::getVarName(){
		return _varName;
	}
	BOOLEAN TableNode::setVarName(STRING varName){
		_varName = varName;
		return true;
	}
	STRING TableNode::getExtraInfo(){
		return _extraInfo;
	}
	BOOLEAN TableNode::setExtraInfo(STRING extraInfo){
		_extraInfo = extraInfo;
		return true;
	}	
	BOOLEAN TableNode::setStartLine(INDEX startLine){
		_startLine = startLine;
		return true;
	}
	BOOLEAN TableNode::setEndLine(INDEX endLine){
		_endLine = endLine;
		return true;
	}
	INDEX TableNode::getStartLine(){
		return _startLine;
	}
	INDEX TableNode::getEndLine(){
		return _endLine;
	}